package cn.edu.xhu.library_management.common.exception;

import cn.edu.xhu.library_management.common.entity.ResultCode;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: MMJ
 * @Date: 2022-01-14
 * @Description: 智慧图书馆自定义异常类
 */
@Data
@AllArgsConstructor // 全参构造
@NoArgsConstructor // 无参构造
public class LibraryManagementException extends RuntimeException{
    // 状态码
    private ResultCode code;
    // 返回消息内容
    private String msg;
}
